How can I show stakeholder requirement status implementation

Hello to all,

 

I would like to show using a dxl script the implementation status for each stakeholder requirement relaying on the status of  incoming requirement links from the below  level.

 

Let's assume that I have 1 STR ( which is inside Target Module) which is satisfied by 4 SYS requirements (which are inside a Source Module). Now, in the Target module I would like to have an attribute called "Current_Status"  which should be filled (by logic)  in percentage based on the "SYS_Status" of the  4 requirements from Source module. Everything what is link from Source Module to Target module and is not a requirement should not be part of the logic.

With other words the logic:

As long as  4 requirements  have "SYS_Status" != "Implemented" => "Curent_Status"== 0/4 [0%]

if  1 SYS requirement has "SYS_Status" == "Implemented" and other 3 have "SYS_Status" != "Implemented" => "Curent_Status"== 1/4 [25%]

if  2 SYS requirement have "SYS_Status" == "Implemented" and other 2 have "SYS_Status" != "Implemented" => "Curent_Status"== 2/4 [50%]

if 3 SYS requirement have "SYS_Status" == "Implemented" and other 1 has "SYS_Status" != "Implemented" => "Curent_Status"== 3/4 [75%]

if all SYS requirements have "SYS_Status" == "Implemeneted" => "Curent_Status"== 4/4 [100%]

 

Is anybody who did such dxl script? Can anybody help me?

 

Thanks


RM_Daniel - Sun Mar 31 18:29:40 EDT 2019

Re: How can I show stakeholder requirement status implementation
llandale - Tue Apr 02 17:38:07 EDT 2019

This is the perfect situation for Attribute DXL.  I'd start with this outline

for each incoming LinkRef; of the source is the System Spec then open it read invisible

for each incoming link; if its from the System Spec and the source objectis a Requirement then
{   CountLinks++

     if source module is "Implemented" then Count_Implemented++
}

int Results

if (this is not a requirement) then Results = 0

if (CountLinks == 0) then Results = 0

Results Count_Implemented/Count_Links, turned into %

obj.attrDXLName = Results

Re: How can I show stakeholder requirement status implementation
RM_Daniel - Thu Apr 11 08:32:13 EDT 2019

Hello llandale,

 

Nothing is working, can you please be more specific. I would say that I'm really newbi in the dxl script. If I am taking your code nothing is working.